package com.yunhe.rentcars.pro.dao.rent;

import com.yunhe.rentcars.pro.entity.rent.CarOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2017/12/1 0001.
 */
public interface YuDingCarDao {
    /**
     * 查询所有未缴费订单信息
     * @param offset
     * @param limit
     * @param orderid
     * @param mobile
     * @return
     */
    List<CarOrder> findYuDingCarOrderList(@Param("offset") Integer offset, @Param("limit")Integer limit, @Param("orderid")String orderid, @Param("mobile")String mobile);

    /**
     * 查询未缴费订单信息条数
     * @param orderid
     * @param mobile
     * @return
     */
    int findYuDingCarOrderCount(@Param("orderid")String orderid, @Param("mobile")String mobile);

    /**
     * 根据订单id查询单个订单信息
     * @param id
     * @return
     */
    CarOrder findYuDingCarOrder(@Param("id") Long id);
}
